package com.letoken.platform.repo.ecommerce.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 售后单
 * </p>
 *
 * @author author
 * @since 2023-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ecommerce_after_order")
@ApiModel(value="EcommerceAfterOrder对象", description="售后单")
public class EcommerceAfterOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单ID")
    private Integer orderId;

    @ApiModelProperty(value = "售后编号")
    private String seqNo;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "退货数量")
    private Integer refundQuantity;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundAmount;

    // 申请售后时的订单状态
    private Integer beforeStatus;


    @ApiModelProperty(value = "物流单号")
    private String deliveryNo;

    @ApiModelProperty(value = "1退货 2退货退款")
    private Integer type;


    @ApiModelProperty(value = "售后原因")
    private String reason;

    @ApiModelProperty(value = "售后审核原因")
    private String approveReason;

    @ApiModelProperty(value = "0未收到货 1已收到货")
    private Integer goodsStatus;

    @ApiModelProperty(value = "售后状态：0->申请售后；1->申请成功； 2->拒绝")
    private Integer status;

    @ApiModelProperty(value = "1->退款中 2->已退款 3->拒绝")
    private Integer refundStatus;

    @ApiModelProperty(value = "1->退货中 2已退货待收货 3商家收货")
    private Integer refundGoodsStatus;

    @ApiModelProperty(value = "删除状态 0未删除 1已删除")
    private Integer deleteStatus;

    @ApiModelProperty(value = "物流公司")
    private String deliveryCompany;

    @ApiModelProperty(value = "收货人姓名")
    private String receiverName;

    @ApiModelProperty(value = "收货人电话")
    private String receiverPhone;

    @ApiModelProperty(value = "收货人邮编")
    private String receiverPostCode;

    @ApiModelProperty(value = "省份/直辖市")
    private String receiverProvince;

    @ApiModelProperty(value = "城市")
    private String receiverCity;

    @ApiModelProperty(value = "区")
    private String receiverRegion;

    @ApiModelProperty(value = "详细地址")
    private String receiverAddress;

    @ApiModelProperty(value = "提交时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "退货时间")
    private LocalDateTime refundGoodsTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
